#pragma strict

public var strength : float = 0.01;

function Update ()
{
    var mesh : Mesh = GetComponent(MeshFilter).mesh;
    var vertices : Vector3[] = mesh.vertices;
    var normals : Vector3[] = mesh.normals;

    for (var i = 0; i < vertices.Length - 1; i++)
        vertices[i] += normals[i] * Mathf.Sin(Time.time / Mathf.Sin(i)) * strength;

    mesh.vertices = vertices;
}